﻿using DAL;
using MODEL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
   public class SchedulingBLL
    {
        SchedulingDAL sche = new SchedulingDAL();

        /// <summary>
        /// 存储过程，车辆调度
        /// </summary>
        /// <returns></returns>
        public List<CarrierinfoMODEL> GetCarriens()
        {
            return sche.GetCarriens();
        }

        /// <summary>
        /// 存储过程，当前车辆调度
        /// </summary>
        /// <returns></returns>
        public List<TruckSchedulingMODEL> GetTruckScheduList()
        {
            return sche.GetTruckScheduList();
        }

        #region 当前可调度车辆调度
        /// <summary>
        /// 当前可调度车辆调度
        /// </summary>
        /// <param name="truckid"></param>
        /// <param name="carriesid"></param>
        /// <param name="userid"></param>
        public void GetDiaoDuTruck(int truckid, int carriesid, int userid)
        {
            sche.GetDiaoDuTruck(truckid, carriesid, userid);
        }
        #endregion
    }
}
